package team.tinavv.ssheasy.sys.dao;

import java.util.List;

import team.tinavv.ssheasy.core.dao.BaseRepository;
import team.tinavv.ssheasy.model.SysUser;

import com.google.code.ssm.api.ParameterValueKeyProvider;
import com.google.code.ssm.api.ReadThroughSingleCache;

public interface SysUserDao extends BaseRepository<SysUser, String>,
		SysUserDaoCustom {

	/**
	 * 根据用户名查询用户列表
	 * 
	 * @param name
	 * @return 匹配传入用户名的用户集合
	 */
	@ReadThroughSingleCache(namespace = "CplxObj", expiration = 3600)
	List<SysUser> findByName(@ParameterValueKeyProvider String name);

}
